<template>
  <div style="background: grey">
    <el-col style="background: grey;height: 100%;width: 100%">
      <el-header class="el-header1">管理员个人空间</el-header>
      <el-menu
        router
        mode="vertical"
        default-active="this.$route.path"
        class="el-menu-vertical-demo"
        uniqueOpened="true"
        @open="handleOpen"
        @close="handleClose"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        style="font-family: 'Roboto',sans-serif">


        <el-menu-item index="job_infor">
          <i class="el-icon-message"></i>
          <template #title>招聘信息</template>
        </el-menu-item>

        <el-menu-item index="com_infor">
          <i class="el-icon-s-home"></i>
          <template #title>公司信息</template>
        </el-menu-item>

        <el-menu-item index="stu_infor">
          <i class="el-icon-s-promotion"></i>
          <template #title>学生信息</template>
        </el-menu-item>

        <el-menu-item index="public_notice">
          <i class="el-icon-edit"></i>
          <template #title>公告信息</template>
        </el-menu-item>

      </el-menu>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'Sidebar',

  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>

.el-header1{
  text-align: center;
  line-height: 400%;
  background: #545c64;
  font-size: 20px;
  color: white;
}

.el-menu-item:hover{
  background: #787878!important;

}

.el-menu-vertical-demo{
  height: 100%;
  width: 100%;

}
</style>
